#ifndef ROBOTTHREAD_H
#define ROBOTTHREAD_H
#include <QThread>
#include <iostream>
#include <string>
#include "robot.h"
class Robot;
class RobotThread : public QThread
{
    Q_OBJECT

public:
    QString* text;
    Robot * robot;
    explicit RobotThread(QObject *parent = 0);
    void setRobot(Robot *robot){this->robot=robot;}
signals:
    void append(const QString &text);

protected:
    void run();

};
#endif
